﻿@model ConferenceLocaleModel
@{
	Layout = null;
}
<!DOCTYPE html>
<html>
<head>
	<meta charset="utf-8" />
	<meta name="viewport" content="width=device-width, initial-scale=1.0">
	<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
	<title>ProfilePrintView</title>
	<link rel="stylesheet" type="text/css" href="~/Content/jquery-easyui-1.4.5/themes/default/easyui.css" />
	<link rel="stylesheet" type="text/css" href="~/Content/jquery-easyui-1.4.5/themes/icon.css" />
	@Styles.Render("~/Content/css")
	@Styles.Render("~/Content/stylecss")
	@Scripts.Render("~/bundles/modernizr")
	@Scripts.Render("~/bundles/jquery")
	<script type="text/javascript" charset="utf-8" src="~/Scripts/jquery-easyui-1.4.5/jquery.easyui.min.js"></script>
	<script type="text/javascript" charset="utf-8" src="~/Scripts/jquery-easyui-1.4.5/locale/@ViewBag.EasyUiLanguage"></script>
	@Scripts.Render("~/bundles/common")
	<script type="text/javascript" charset="utf-8" src="~/Scripts/layer/layer.js"></script>
	<link rel="stylesheet" type="text/css" href="~/Content/Site.css" />
	<link rel="stylesheet" type="text/css" href="~/Content/Style.css" />
	<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0, user-scalable=no" />
	<script>
		$(function () {
			$("span[id='fullNamePersonal']").text(escape2Html("@Model.FullName"));
			$("span[id='essayPersonal']").text(escape2Html("@Model.Essay"));
			$("span[id='mailPersonal']").text("@Model.Mail");
			$("span[id='affiliationPersonal']").text(escape2Html("@Model.Affiliation"));
			$("span[id='telePersonal']").text("@Model.Tel");
			$("span[id='countryPersonal']").text("@Model.Country");
			$("span[id='addressPersonal']").text(escape2Html("@Model.Address"));
			$("span[id='feePersonal']").text("@Model.Fee".replace("&#165;", "¥"));
			if (null != "@Model.PayType" && "" != "@Model.PayType") {
				$("span[id='paidTypePersonal']").text("@Model.PayType");
			} else {
				$("span[id='paidTypePersonal']").text("@Resources.HasNotPaid");
			}

			$("span[id='sp+Customize1']").html(escape2Html("@Model.Customize1"));
			$("span[id='sp+Customize2']").html(escape2Html("@Model.Customize2"));
			$("span[id='sp+Customize3']").html(escape2Html("@Model.Customize3"));
			$("span[id='sp+Customize4']").html(escape2Html("@Model.Customize4"));
			$("span[id='sp+Customize5']").html(escape2Html("@Model.Customize5"));
			$("span[id='otherRemarkPersonal']").text(escape2Html("@Model.Remark"));
			$("#personalWindowTitle").text("@Resources.ConferenceName："+"@Model.ConferenceName");
			$("span[id='attendid']").text(escape2Html("@Model.AttendId"));
			$("span[id='attendenceIdentity']").text(escape2Html("@Model.AttendenceIdentity"));
			$("#qrCode").attr("src", "@Url.Action(nameof(UtilityController.QrCodeImg), nameof(UtilityController).GetControllerName())/@Model.AttendId");

			$("span[id='paymentHasPay']").text(escape2Html("@Model.PaymentHasPay").replace("&#165;", "¥"));
			$("span[id='invoiceTitleForPersonal']").text(escape2Html("@Model.InvoiceTitle"));
			$("span[id='TaxNumForPersonal']").text(escape2Html("@Model.InvoiceNum"));
			$("span[id='AddressAndMobileForPersonal']").text(escape2Html("@Model.AddressAndTel"));
			$("span[id='BankAndAccountForPersonal']").text(escape2Html("@Model.BankAndAccount"));
			$("span[id='InvoiceNumForPersonal']").text(escape2Html("@Model.InvoiceDetail"));
			$("span[id='hasPaidForPersonal']").text(escape2Html("@Model.HasPaid"));
			$("span[id='essayIdForPersonal']").text("@Model.Essay");
			$("span[id='reportIdForPersonal']").text("@Model.ReportId");
			document.getElementById("paymentDetailForPersonal").innerText="@Model.FeeDetail".replace(new RegExp(/(&#165;)/g),"¥")
			$("span[id='payDateForPersonal']").text(escape2Html("@Model.PaymentTime"));
		});

		//转意符换成普通字符
		function escape2Html(str) {
			var arrEntities = { 'lt': '<', 'gt': '>', 'nbsp': ' ', 'amp': '&', 'quot': '"' };
			return str.replace(/&(lt|gt|nbsp|amp|quot);/ig, function (all, t) { return arrEntities[t]; });
		}
	</script>
</head>
<body>
	<!-- 查看个人参会信息 -->	
	<div id="printbody2" >
		<form id="personalRecord" method="post">
			<table width="100%" height="100%" id="printbody" cellpadding="0" cellspacing="1" border="0" class="tastyle03">
				<tr>					
					<td id="personalWindowTitle" style="text-align:left;font-size:18px;font-weight:bold;color:#333;text-indent: -15px;background:#fff;border: 1px solid #BEBEBE;font-size:14px;padding-left: 20px;" class="w1 c8" colspan="4"></td>
				</tr>
				<tr>
					<td style="text-align:left;font-size:18px;font-weight:bold;color:#333;text-indent: -15px;background:#fff;border: 1px solid #BEBEBE;font-size:14px;padding-left: 20px;" class="w1 c8" colspan="4">@Resources.BasicInfo</td>
				</tr>
				<tr>
					<td style="text-align: left;font-size:12px;background:#fff;border: 1px solid #BEBEBE;padding-left: 5px;" class="w1 c1">@Resources.AttendenceId：</td>
					<td style="text-align: left;font-size:12px;background:#fff;border: 1px solid #BEBEBE;padding-left: 5px;" class="w2 c2" colspan="3">
						<span id="attendid"></span>
					</td>
				</tr>
				<tr>
					<td style="text-align: left;font-size:12px;background:#fff;border: 1px solid #BEBEBE;padding-left: 5px;" class="w1 c3">@Resources.AttendenceIdentity：</td>
					<td style="text-align: left;font-size:12px;background:#fff;border: 1px solid #BEBEBE;padding-left: 5px;" class="w2 c4" colspan="3">
						<span id="attendenceIdentity"></span>
					</td>
				</tr>
				<tr>
					<td style="text-align: left;font-size:12px;background:#fff;border: 1px solid #BEBEBE;padding-left: 5px;" class="w1 c1">@Resources.FullName：</td>
					<td style="text-align: left;font-size:12px;background:#fff;border: 1px solid #BEBEBE;padding-left: 5px;" class="w2 c2" colspan="3">
						<span id="fullNamePersonal"></span>
					</td>
				</tr>
				<tr>
					<td style="text-align: left;font-size:12px;background:#fff;border: 1px solid #BEBEBE;padding-left: 5px;" class="w1 c3">@Resources.Affiliation：</td>
					<td style="text-align: left;font-size:12px;background:#fff;border: 1px solid #BEBEBE;padding-left: 5px;" class="w2 c4" colspan="3">
						<span id="affiliationPersonal"></span>
					</td>
				</tr>
				<tr>
					<td style="text-align: left;font-size:12px;background:#fff;border: 1px solid #BEBEBE;padding-left: 5px;" class="w1 c1">@Resources.Country：</td>
					<td style="text-align: left;font-size:12px;background:#fff;border: 1px solid #BEBEBE;padding-left: 5px;" class="w2 c2" colspan="3">
						<span id="countryPersonal"></span>
					</td>
				</tr>
				<tr>
					<td style="text-align: left;font-size:12px;background:#fff;border: 1px solid #BEBEBE;padding-left: 5px;" class="w1 c1">@Resources.Mail：</td>
					<td style="text-align: left;font-size:12px;background:#fff;border: 1px solid #BEBEBE;padding-left: 5px;" class="w2 c2" colspan="3">
						<span id="mailPersonal"></span>
					</td>
				</tr>								
				<tr>
					<td style="text-align: left;font-size:12px;background:#fff;border: 1px solid #BEBEBE;padding-left: 5px;" class="w1 c1">@Resources.Mobile：</td>
					<td style="text-align: left;font-size:12px;background:#fff;border: 1px solid #BEBEBE;padding-left: 5px;" class="w2 c2" colspan="3">
						<span id="telePersonal"></span>
					</td>
				</tr>
				<tr>
					<td style="text-align: left;font-size:12px;background:#fff;border: 1px solid #BEBEBE;padding-left: 5px;" class="w1 c3">@Resources.Address：</td>
					<td style="text-align: left;font-size:12px;background:#fff;border: 1px solid #BEBEBE;padding-left: 5px;" class="w2 c4" colspan="3">
						<span id="addressPersonal"></span>
					</td>
				</tr>
				<tr>
					<td style="text-align:left;font-size:18px;font-weight:bold;color:#333;text-indent: -15px;background:#fff;border: 1px solid #BEBEBE;font-size:14px;padding-left: 20px;" class="w1 c8" colspan="4">@Resources.EssayInfo</td>
				</tr>
				<tr>
					<td style="text-align: left;font-size:12px;background:#fff;border: 1px solid #BEBEBE;padding-left: 5px;" class="w1 c1">@Resources.EssayId：</td>
					<td style="text-align: left;font-size:12px;background:#fff;border: 1px solid #BEBEBE;padding-left: 5px;" class="w2 c2" colspan="3">
						<span id="essayIdForPersonal"></span>
					</td>
				</tr>
				<tr>
					<td style="text-align: left;font-size:12px;background:#fff;border: 1px solid #BEBEBE;padding-left: 5px;" class="w1 c3">@Resources.ReportId：</td>
					<td style="text-align: left;font-size:12px;background:#fff;border: 1px solid #BEBEBE;padding-left: 5px;" class="w2 c4" colspan="3">
						<span id="reportIdForPersonal"></span>
					</td>
				</tr>
				<tr>
					<td style="text-align:left;font-size:18px;font-weight:bold;color:#333;text-indent: -15px;background:#fff;border: 1px solid #BEBEBE;font-size:14px;padding-left: 20px;" class="w1 c8" colspan="4">@Resources.InvoiceInfo</td>
				</tr>
				<tr>
					<td style="text-align: left;font-size:12px;background:#fff;border: 1px solid #BEBEBE;padding-left: 5px;" class="w1 c1">@Resources.InvoiceTitle：</td>
					<td style="text-align: left;font-size:12px;background:#fff;border: 1px solid #BEBEBE;padding-left: 5px;" class="w2 c2" colspan="3">
						<span id="invoiceTitleForPersonal"></span>
					</td>
				</tr>
				<tr>
					<td style="text-align: left;font-size:12px;background:#fff;border: 1px solid #BEBEBE;padding-left: 5px;" class="w1 c3">@Resources.TaxNum：</td>
					<td style="text-align: left;font-size:12px;background:#fff;border: 1px solid #BEBEBE;padding-left: 5px;" class="w2 c4" colspan="3">
						<span id="TaxNumForPersonal"></span>
					</td>
				</tr>
				<tr>
					<td style="text-align: left;font-size:12px;background:#fff;border: 1px solid #BEBEBE;padding-left: 5px;" class="w1 c1">@Resources.AddressAndTel：</td>
					<td style="text-align: left;font-size:12px;background:#fff;border: 1px solid #BEBEBE;padding-left: 5px;" class="w2 c2" colspan="3">
						<span id="AddressAndMobileForPersonal"></span>
					</td>
				</tr>
				<tr>
					<td style="text-align: left;font-size:12px;background:#fff;border: 1px solid #BEBEBE;padding-left: 5px;" class="w1 c3">@Resources.BankAndAccount：</td>
					<td style="text-align: left;font-size:12px;background:#fff;border: 1px solid #BEBEBE;padding-left: 5px;" class="w2 c4" colspan="3">
						<span id="BankAndAccountForPersonal"></span>
					</td>
				</tr>
				<tr>
					<td style="text-align: left;font-size:12px;background:#fff;border: 1px solid #BEBEBE;padding-left: 5px;" class="w1 c1">@Resources.InvoiceAmount：</td>
					<td style="text-align: left;font-size:12px;background:#fff;border: 1px solid #BEBEBE;padding-left: 5px;" class="w2 c2">
						<span id=""></span>
					</td>
					<td style="text-align: left;font-size:12px;background:#fff;border: 1px solid #BEBEBE;padding-left: 5px;" class="w1 c1">@Resources.InvoiceNum：</td>
					<td style="text-align: left;font-size:12px;background:#fff;border: 1px solid #BEBEBE;padding-left: 5px;" class="w2 c2">
						<span id="InvoiceNumForPersonal"></span>
					</td>
				</tr>
				<tr>
					<td style="text-align:left;font-size:18px;font-weight:bold;color:#333;text-indent: -15px;background:#fff;border: 1px solid #BEBEBE;font-size:14px;padding-left: 20px;" class="w1 c8" colspan="4">@Resources.Fee</td>
				</tr>
				<tr>
					<td style="text-align: left;font-size:12px;background:#fff;border: 1px solid #BEBEBE;padding-left: 5px;" class="w1 c1">@Resources.PaymentShouldPay：</td>
					<td style="text-align: left;font-size:12px;background:#fff;border: 1px solid #BEBEBE;padding-left: 5px;" class="w2 c2">
						<span id="feePersonal"></span>
					</td>
					<td style="text-align: left;font-size:12px;background:#fff;border: 1px solid #BEBEBE;padding-left: 5px;" class="w1 c1">@Resources.PaidType：</td>
					<td style="text-align: left;font-size:12px;background:#fff;border: 1px solid #BEBEBE;padding-left: 5px;" class="w2 c2">
						<span id="paidTypePersonal"></span>
					</td>
				</tr>
				<tr>
					<td style="text-align: left;font-size:12px;background:#fff;border: 1px solid #BEBEBE;padding-left: 5px;" class="w1 c3">@Resources.PaymentHasPay：</td>
					<td style="text-align: left;font-size:12px;background:#fff;border: 1px solid #BEBEBE;padding-left: 5px;" class="w2 c4">
						<span id="paymentHasPay"></span>
					</td>
					<td style="text-align: left;font-size:12px;background:#fff;border: 1px solid #BEBEBE;padding-left: 5px;" class="w1 c3">@Resources.PayStatus：</td>
					<td style="text-align: left;font-size:12px;background:#fff;border: 1px solid #BEBEBE;padding-left: 5px;" class="w2 c4">
						<span id="hasPaidForPersonal"></span>
					</td>
				</tr>
				<tr>
					<td style="text-align: left;font-size:12px;background:#fff;border: 1px solid #BEBEBE;padding-left: 5px;" class="w1 c1">@Resources.PaymentDetail：</td>
					<td style="text-align: left;font-size:12px;background:#fff;border: 1px solid #BEBEBE;padding-left: 5px;" class="w2 c2" colspan="3">
						<span id="paymentDetailForPersonal"></span>
					</td>
				</tr>
				<tr>
					<td style="text-align: left;font-size:12px;background:#fff;border: 1px solid #BEBEBE;padding-left: 5px;" class="w1 c3">@Resources.PayDate：</td>
					<td style="text-align: left;font-size:12px;background:#fff;border: 1px solid #BEBEBE;padding-left: 5px;" class="w2 c4" colspan="3">
						<span id="payDateForPersonal"></span>
					</td>
				</tr>
				@if (Model.CustomizeList.Count > 0)
				{
				<tr>
					<td style="text-align:left;font-size:18px;font-weight:bold;color:#333;text-indent: -15px;background:#fff;border: 1px solid #BEBEBE;font-size:14px;padding-left: 20px;" class="w1 c8" colspan="4">@Resources.Other</td>
				</tr>
				}
				@foreach (var customize in Model.CustomizeList)
				{
				<tr>
					<td style="text-align: left;font-size:12px;background:#fff;border: 1px solid #BEBEBE;padding-left: 20px;" class="w1 c1">@customize.DisplayName：</td>
					<td style="text-align: left;font-size:12px;background:#fff;border: 1px solid #BEBEBE;padding-left: 20px;" class="w2 c2" colspan="3">
						<span id="sp+@customize.Key"></span>
					</td>
				</tr>
				}
				<tr>
					<td style="text-align:left;font-size:18px;font-weight:bold;color:#333;text-indent: -15px;background:#fff;border: 1px solid #BEBEBE;font-size:14px;padding-left: 20px;" class="w1 c8" colspan="4">@Resources.Remark</td>
				</tr>
				<tr>
					<td style="text-align: left;font-size:12px;background:#fff;border: 1px solid #BEBEBE;padding-left: 5px;" class="w1 c1">@Resources.Remark：</td>
					<td style="text-align: left;font-size:12px;background:#fff;border: 1px solid #BEBEBE;padding-left: 5px;" class="w2 c2" colspan="3">
						<span id="otherRemarkPersonal"></span>
					</td>
				</tr>
			</table>
		</form>
	</div>
</body>
</html>

